﻿using System;
using System.Collections.Generic;
using System.Text;
using Abp.AutoMapper;
using FwProject.Core.FactoryInfo;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FwProject.Core.SettlementInfoModel;
namespace FwProject.Settlement.Dto
{
    [AutoMap(typeof(SettlementInfo))]
  public  class SettlementInfoInput
    {
        /// <summary>
        /// 餐厅
        /// </summary>
        /// <value>The restaurantid.</value>
        [Required]
        [Display(Name ="餐厅编号")]
        public Guid Restaurantid { get; set; }

        //[Display(Name = "结账单号")]
        //public string CreationNumber { get; set; }
        /// <summary>
        /// 应收金额
        /// </summary>
        /// <value>The totalprice.</value>
        [Required]
        [Display(Name = "应收金额")]
          
        public decimal Totalprice { get; set; } = 0;
        /// <summary>
        /// 制单优惠
        /// </summary>
        /// <value>The discountprice.</value>
        [Display(Name = "制单优惠")]
        public decimal Discountprice { get; set; } = 0;
        /// <summary>
        /// 实际金额
        /// </summary>
        /// <value>The actualprice.</value>
        [Required]
        [Display(Name = "实际金额")]
        public decimal Actualprice { get; set; } = 0;
        /// <summary>
        /// 收款优惠
        /// </summary>
        public decimal ReceivedDiscount { get; set; }

        [Display(Name ="审核状态")]
        public ExamineStatus ExamineStatus { get; set; } = ExamineStatus.未审核;

        public RestaurantPayStatus RestaurantPayStatus { get; set; } = RestaurantPayStatus.未收款;


        /// <summary>
        /// 收款司机
        /// </summary>
        /// <value>The employee driverid.</value>
        [Display(Name = "收款司机")]
        public long? EmployeeDriverid { get; set; }


        /// <summary>
        /// 配送时间 2018-01-01-2018--01-31 当月
        /// 2018-01-01 当日
        /// </summary>
        public string DeliveryDate { get; set; }
        /// <summary>
        /// 默认定期结算特殊情况按照日结系统默认自动生成数据。
        /// </summary>
        public FwProject.Core.Restaurant.BalanceWayEnum BalanceWayEnum { get; set; } = FwProject.Core.Restaurant.BalanceWayEnum.定期结算;

        /// <summary>
        /// 收据备注
        /// </summary>
        public string RemarksConten { get; set; }


        [Display(Name ="配送编号")]
        public List<Guid> Distribution { get; set; }
        
    }
}
